<?php
    require_once("../../../include/connect.php");
    
    if(isset($_GET['img']))
    {
        $id = $_GET['img'];
        
        $query = mysql_query(" DELETE FROM picture WHERE id = {$id} ");
        
        if($query)
            header("Location: ../index.php?p=up_img#img");
            
    }
?>